//dev
const domain = 'https://p-ai.onionecology.com'
// const liliDomain = 'https://lilithai.msyc.cc'
// const liliDomain = 'https://sator-test.vanns.cn'
const liliDomain = '/lilith'
const aLiDomain = '/aLid'
const fooocus = '/fooocus'
const comfyUi = '/comfyUi'
//online
//const domain = 'https://pro.vanns.cn'
const WebAPI = {

  //基础
  GetLibrary: domain + '/pb/mif/image/depot/page',
  SaveToLibraryMJ: domain + '/pb/mj/four-image/save',
  SaveToLibrary: domain + '/pb/mif/image/depot/handle',
  UploadImage: domain + '/pb/oss/uploadFiles',
  UploadImageToComfyui: domain + '/pb/comfyui/upload-image',
  UploadWebImageToOss: domain + '/pb/oss/imgUrl-to-oss',
  UploadImageDataToOss: domain + '/pb/oss/img-data-to-oss',

  //消费
  PreConsumerPoint: domain + '/pb/point/pre-consumer-point',
  GetRediduePoint: domain + '/pb/point/get-residue-point',

  //功能
  TxtToImg: domain + '/pb/mj/text-to-image',//同时支持文生图和图生图
  GetTxt2ImgPromptSelecterSetting: domain + '/pb/mj/param-seting/get',
  GetMjResult: domain + '/pb/mj/get-task',
  GetMjSingleResult: domain + '/pb/mj/four-image/select-one',
  SegmentCloth: domain + '/pb/cloth/segmentCloth',
  ModelSwap: domain + '/pb/comfyui/model-swap',
  GetComfyuiFileName: domain + '/pb/comfyui/get-image-file-name',
  GetComfyuiFileUrl: domain + '/pb/comfyui/get-image-url',
  RemoveBackground: domain + '/pb/clipdrop/rm-background',//抠图
  Upscaling: domain + '/pb/clipdrop/image-upscaling',//高清还原
  ReplaceBackground: domain + '/pb/clipdrop/replace-background',//换背景
  //素材换脸
  UploadTemplate: domain + '/pb/mif/template',//上传图片模板
  MergeImage: domain + '/pb/mif/merge-image',//人脸融合


  // 莉莉丝API
  Lili: {
    SendSmsCode: liliDomain + '/pro-api/api/default/send-sms-code',   // 发送短信
    Login: liliDomain + '/pro-api/api/user/login',                    // 登录
    Info: liliDomain + '/pro-api/api/user/info',                      // 获取用户信息
    Chat: liliDomain + '/pro-api/api/chat/chat',                      // 对话提交接口
    Answer: liliDomain + '/pro-api/api/chat/answer',                  // 获取对话 session_id
    Config: liliDomain + '/pro-api/api/default/config',               // 获取聊天机器人配置
    People: liliDomain + '/pro-api/api/user/people',                  // 获取聊天机器人列表
    View: liliDomain + '/pro-api/api/people/view',                    // 获取聊天机器人
    ChatPeople: liliDomain + '/pro-api/api/chat/chat-people',         // 获取聊天记录
    Clear: liliDomain + '/pro-api/api/chat/clear',                    // 清除聊天，开始新对话
    AddChat: liliDomain + '/pro-api/api/user/add-people',                          // 添加ai伙伴
  },

  // 阿里接口
  ALi: {
    // 交互式全分割
    InteractiveFullSegmentation: aLiDomain + '/aLi/interactiveFullSegmentation',
    // 互动涂鸦分割
    InteractiveScribbleSegmentation: aLiDomain + '/aLi/interactiveScribbleSegmentation',
    // 获取异步任务结果
    GetJobResult: aLiDomain + '/aLi/getJobResult',
    SegmentCloth: aLiDomain + '/aLi/segmentCloth',
  },

  // comfyUi 接口
  ComfyUi: {
    // 上传图片换取name：图片url或图片文件流
    UploadImage: comfyUi + '/uploadImage',
    // 根据文件名换取图片url
    DownloadImage: comfyUi + '/downloadImage',
    // SD图片生成：换模特 + 换背景
    ChangeModelBackgroundImage: comfyUi + '/changeModelBackgroundImage',
    // 异步结果查询
    getDataBySync: comfyUi + '/Async',
  },

  // image 接口
  Image: {
    // 获取模特图片
    getModel: aLiDomain + '/image/model',
    // 根据分组ID获取模特图片
    getModelByCategoryId: aLiDomain + '/image/modelByCategoryId',
    // 获取模特风格图
    getModelGroup: aLiDomain + '/image/modelGroup',
    // 根据分组ID获取模特风格图
    getModelGroupByGroupId: aLiDomain + '/image/modelGroupByGroupId',
    // 获取场景图
    getScene: aLiDomain + '/image/scene',
  },

  Fooocus: {
    expand: fooocus + '/extend/',

  }
}

export default WebAPI